<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:o="http://openfaces.org/">

    <ui:composition template="/template.xhtml">
        <ui:define name="body">
            <h:form>
                <h:outputText value="#{bundle.CreateSeatcinemaTitle}" styleClass="titulo"></h:outputText>
                <br/>
                <h:panelGrid columns="3" styleClass="panel">
                    <h:outputLabel value="#{bundle.EditSeatcinemaLabel_seatcinemaPK_seatID}" for="seatcinemaPK_seatID" />
                    <h:inputText id="seatcinemaPK_seatID" value="#{seatcinemaController.selected.seatcinemaPK.seatID}"
                                 title="#{bundle.EditSeatcinemaTitle_seatcinemaPK_seatID}" readonly="true"
                                 size="#{seatcinemaController.longCampo('seatcinemaPK.seatID')}"/>
                    <h:outputText/>
                    <h:outputLabel value="#{bundle.EditSeatcinemaLabel_rowNo}" for="rowNo" />
                    <h:inputText id="rowNo" value="#{seatcinemaController.selected.rowNo}"
                                 title="#{bundle.EditSeatcinemaTitle_rowNo}" 
                                 required="#{seatcinemaController.campoNulo('rowNo')}" 
                                 requiredMessage="#{bundle.EditSeatcinemaRequiredMessage_rowNo}"
                                 size="#{seatcinemaController.longCampo('rowNo')}"
                                 maxlength="#{seatcinemaController.longCampo('rowNo')}"/>
                    <h:message for="rowNo" errorStyle="color: red" infoStyle="color: green"/>
                    <h:outputLabel value="#{bundle.EditSeatcinemaLabel_seatNo}" for="seatNo" />
                    <h:inputText id="seatNo" value="#{seatcinemaController.selected.seatNo}"
                                 title="#{bundle.EditSeatcinemaTitle_seatNo}" 
                                 required="#{seatcinemaController.campoNulo('seatNo')}" 
                                 requiredMessage="#{bundle.EditSeatcinemaRequiredMessage_seatNo}"
                                 size="#{seatcinemaController.longCampo('seatNo')}"
                                 maxlength="#{seatcinemaController.longCampo('seatNo')}"/>
                    <h:message for="seatNo" errorStyle="color: red" infoStyle="color: green"/>
                    <h:outputLabel value="#{bundle.EditSeatcinemaLabel_cinema}" for="cinema" />
                    <h:selectOneMenu id="cinema" value="#{seatcinemaController.selected.cinema}" title="#{bundle.EditSeatcinemaTitle_cinema}" 
                                     required="true" requiredMessage="#{bundle.EditSeatcinemaRequiredMessage_cinema}">                        <f:selectItems value="#{cinemaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:message for="cinema" errorStyle="color: red" infoStyle="color: green"/>
                </h:panelGrid>
                <br />
                <h:commandButton action="#{seatcinemaController.create}" value="Aceptar"/>
                <h:commandButton action="#{seatcinemaController.prepareList}" value="Cancelar" immediate="true"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
